package com.jichaoyun.service;

import com.jichaoyun.common.model.PagedResult;
import com.jichaoyun.model.entity.PriceChange;
import com.baomidou.mybatisplus.extension.service.IService;

import com.jichaoyun.model.entity.Rechargeinfo;
import com.jichaoyun.model.vo.PriceChangeModel;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author zhen
* @description 针对表【price_change】的数据库操作Service
* @createDate 2023-12-08 19:50:38
*/
public interface IPriceChangeService extends IService<PriceChange> {

    /**
     * 查询汽费记录
     * @param pageNo
     * @return
     */
    PagedResult selectPriceChangeListByPage(Integer pageNo);

    /**
     * 汽费调整
     * @param model
     */
    void startPriceChange(PriceChangeModel model);

    /**
     * 批量汽费调整
     * @param models
     */
    void startPriceChange(List<PriceChangeModel> models);

    /**
     * 结算调整
     * @param pageNo
     * @param startTime
     * @param endTime
     * @return
     */
    PagedResult selectTotalBetween(Integer pageNo, LocalDateTime startTime,LocalDateTime endTime);

    /**
     * 充值
     * @param rechargeinfo
     * @throws Exception
     */
    void recharge(Rechargeinfo rechargeinfo) throws Exception;
}
